package com.etc.dao;

import com.etc.entity.Room;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * author:邱宏宇
 */

@Repository
public interface RoomMapper {

    /**
     * 动态插入病房
     * @param room
     * @return
     */
    int insert(Room room);

    /**
     * 通过病房Id删除病房
     * @param roomId
     * @return
     */
    int delete(Integer roomId);


    /**
     * 动态修改病房信息
     * @param room
     * @return
     */
    int update(Room room);

    /**
     * 动态查询
     * @param room
     * @return
     */
    List<Room> selectiveFind(Room room);
}
